/**
* Copyright 2009, Jethro Grassie, Creative Jar Technology Ltd (http://www.cjtech.co.uk)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
**/

package com.cjt.sample.business;

import com.adobe.cairngorm.business.*;

import javafx.io.http.HttpRequest;

public class Services extends ServiceLocator
{
    public var getTime:HTTPService = HTTPService
    {
        makeRequest: function():HttpRequest
        {
            HttpRequest
            {
                location: "http://dev.cjtech.co.uk/getTime.php";
                method: HttpRequest.GET;
            }
        }
    };

    public var getTimeRMI:TimeRMIService = TimeRMIService {}
}

var instance:Services = Services{};
public function getInstance():Services
{
    return instance;
}
